package com.young.ysepay.controllers;

import com.young.ysepay.service.YsRefundRequestparamService;
import com.young.ysepay.utils.apiresult.ApiResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 退款请求参数信息表
 * 
 * @author 赵鹏军
 * @email 1428939700@qq.com
 * @date 2019-06-21 10:18:06
 */
 
@RestController
@RequestMapping("/ysRefundRequestparam")
public class YsRefundRequestparamController {
	@Autowired
	private YsRefundRequestparamService ysRefundRequestparamService;
	private static Logger log = LoggerFactory.getLogger(YsController.class);
	/**
	 * @Author zhaopengjun
	 * @Description //分账退款请求交易
	 * @Date 11:25 2019/6/5
	 * @Param [paraMap]
	 * @return java.lang.String
	 **/
	@PostMapping("/ysRoutingRefundRequest")
	public ApiResult ysRoutingRefundRequest(@RequestParam Map<String,Object> param) {
		log.info("————————————请求参数——————————————————————————"+param);
		try {
			return ysRefundRequestparamService.ysRoutingRefundRequest(param);
		} catch (Exception e) {
            return ApiResult.failure();
		}
    }

}
